package com.yunkeji.system.domain.bo;

import com.yunkeji.common.core.validate.AddGroup;
import com.yunkeji.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.yunkeji.common.core.domain.BaseEntity;

/**
 * 用户消息业务对象 ykj_msg
 *
 * @author zhang
 * @date 2024-07-10
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class MsgBo extends BaseEntity {

    /**
     * 
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 消息类型 1文字类型
     */
    @NotNull(message = "消息类型 1文字类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer type;

    /**
     * 发送用户id
     */
    @NotNull(message = "发送用户id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long sendUserId;

    /**
     * 接收用户id
     */
    @NotNull(message = "接收用户id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long recUserId;

    /**
     * 发送内容
     */
    @NotBlank(message = "发送内容不能为空", groups = { AddGroup.class, EditGroup.class })
    private String content;


}
